package cn.tedu.luban.demand.main.rpc;

import cn.tedu.luban.demand.api.DemandApi;
import cn.tedu.luban.demand.main.service.DemandService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class DemandApiImpl implements DemandApi {

    @Autowired
    private DemandService demandService;

    @Override
    public Boolean grabOrder(String requestOrderNo) {
        return demandService.grabOrder(requestOrderNo);
    }

    @Override
    public Boolean returnOrder(String requestOrderNo) {
        return demandService.returnOrder(requestOrderNo);
    }
}
